<html>
<head><title>Main Lobby</title></head>
<body>
<?php
if (isset($_GET['E']) && $_GET['E'] !=""){
	$E = $_GET['E'];
}Else{
	$E = null;
}
?>
<h1>Main Lobby</h1>
<p>- Add all open battles listing</p>
<p>- Add global chat?</p>
<p>- Add some rankings &amp; ladder stuff</p>

<h2>Host</h2>
<form name="host" action="site.php?" method="get">
<input type="hidden" name="c" value="GameLobby" />
<input type="hidden" name="a" value="stageAsHost" />
<input type="text" name="P" />- Player Id <i>(Will later be provided by Session)</i><br/>
<input type="text" name="Bn" />- New Battle Name <i>(Upto 16 chars. Warning: No character checking!)</i><br/>
<input type="password" name="Pwd" />- Password <i>(Optional, Upto 16 chars. Warning: No character checking!)</i><br/>
<input type="submit" value="Host New Game" />
</form>
<h2>Join</h2>
<form name="input" action="site.php?" method="get">
<input type="hidden" name="c" value="GameLobby" />
<input type="hidden" name="a" value="stageAsJoiner" />
<input type="text" name="P" />- Player Id <i>(Will later be provided by Session)</i><br/>
<input type="text" name="B" />- Battle Id <i>(Will later be provided by list selection)</i><br/>
<input type="text" name="Bn" />- Battle Name <i>(Upto 16 chars. Will later be provided by list selection) Required so we can give a nice error message in event of failure during join attempt</i><br/>
<input type="password" name="Pwd" />- Password <i>(Optional)</i><br/>
<input type="submit" value="Join Game" />
</form>
<?php
if ($E <> null){
	echo "<h1 class='error'>".$E."</h1>";
}
 ?>
 </body>
 </html>